<!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="utf-8">
    <title></title>
    <script>
    let ws=new WebSocket('ws://localhost:8080/');

    ws.onopen=function (){
      alert('连接已建立');
    };
    ws.onmessage=function (){};
    ws.onclose=function (){};
    ws.onerror=function (){};
    </script>
  </head>
  <body>

  </body>
</html>
